package cn.jsl.shop.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.jsl.basic.domain.BaseDomain;
import cn.jsl.emp.domain.Employee;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Shop extends BaseDomain {

    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "联系电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name = "注册时间" ,orderNum = "3", width = 30, isImportField = "true_st", exportFormat="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-8")
    private Date registerTime = new Date();
    /**
     * 店铺状态：0待审核，1以审核，-1驳回，2待激活
     */
    @Excel(name = "店铺状态" ,orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;
    @Excel(name = "店铺地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "店铺logo" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;

    //店铺管理员ID
    private Long admin_id;

    //关联对象 - 店铺管理员对象
    private Employee employee;
}
